package net.lahuobao.finance.dao;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.github.miemiedev.mybatis.paginator.domain.PageBounds;


import net.lahuobao.finance.entity.depart.User;
import net.lahuobao.finance.entity.depart.UserAction;

@SuppressWarnings({"rawtypes"})
@Repository("userDao")
public interface UserMapper {
    List<Map> selectAllOwnerUser(PageBounds pageBounds, Map map);
    Map selectMapByUserId(Integer userId);
    User selectByUserId(Integer userId);
    User selectByPrimaryKey(Integer userId);
    int updateByPrimaryKey(User record);
    // 删除用户所有权限
    void deleteActionIdListByUserId(Integer userId);

    int insertUserAction(UserAction record);
    List<UserAction> selectUserActionsByCargoOwnerId(Integer organizationId);
 
    
    //根据userid获得机构id
    Map selectOrganzationIdByUserId(Integer UserId);
    List<Map> selectCzAndDriverByInfo(Map map, PageBounds pageBounds);
}
